package org.rc.dto;

import lombok.Data;
import org.rc.entity.Room;

import java.util.List;

@Data
public class RoomPageRes {

    private Long id;

    private String name;

    private String userName;

    private List<String> devTypes;

    public static RoomPageRes getInstance(Room room){
        RoomPageRes roomPageRes = new RoomPageRes();
        roomPageRes.setId(room.getId());
        roomPageRes.setName(room.getName());
        return roomPageRes;
    }

}
